#include "SQLAllColumnExpr.h"
#include "../../visitor/SQLASTVisitor.h"

SETCALSS(SQLAllColumnExpr);

SQLAllColumnExpr::SQLAllColumnExpr()
{
}

SQLAllColumnExpr::~SQLAllColumnExpr()
{
}
void SQLAllColumnExpr::output(std::stringstream *buf)
{
  // buf.append("*");
  (*buf) << "*";
}

void SQLAllColumnExpr::accept0(SQLASTVisitor_ptr visitor)
{
  visitor->visit(SharedObject(SQLAllColumnExpr));
  visitor->endVisit(SharedObject(SQLAllColumnExpr));
}

void SQLAllColumnExpr::setResolvedTableSource(SQLTableSource_ptr resolvedTableSource)
{
  this->resolvedTableSource = resolvedTableSource;
}

SQLExpr_ptr SQLAllColumnExpr::getOwner()
{
  return owner;
}

void SQLAllColumnExpr::setOwner(SQLExpr_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(SQLAllColumnExpr));
  }
  this->owner = x;
}

SQLExpr_list_ptr SQLAllColumnExpr::getExcept()
{
  return except;
}

void SQLAllColumnExpr::setExcept(SQLExpr_list_ptr except)
{
  this->except = except;
}
